package com.bdqn.base.jedis;

import redis.clients.jedis.JedisPoolConfig;

/**
 * Redis连接配置
 * 
 * @author Lilibo
 *
 */
public class RedisConfig {

	public static String password;

	/**
	 * 获取Redis连接配置
	 * 
	 * @return
	 */
	public static JedisPoolConfig getJedisPoolConfig() {
		JedisPoolConfig config = new JedisPoolConfig();
		config.setMaxTotal(20);
		config.setMaxIdle(5);
		config.setMaxWaitMillis(1000);
		config.setTestOnBorrow(false);
		password = "lilibo";
		return config;
	}

}
